<?php include("header.php"); ?>

<script type="text/javascript">
    function validate()
	{
        document.menu.submit();
	}

</script>

	<div class="one_center">
		<div class="box_two_third">
			<div class="box_head"><?php if($menu->id) { echo _LB_EDIT_MENU; } else { echo _LB_ADD_MENU;} ?></div>
			<div class="box_content" >
				<form action="" name="menu" method="post">
				<input type="hidden" id="id" name="id" value="<?php $menu->id; ?>"/>
				<input type="hidden" id="act" name="act" value="<?php echo ACT_VALID_EDIT; ?>"/>
				<table cellpadding="0" cellspacing="5px" border="0">
                    <tr>
                        <td width="20%"><?php echo _LB_PERMISSION; ?>&nbsp;:&nbsp;<?php echo _LB_REQUIRE_FIELD; ?></td>
                        <td>
                            <select id="group" name="group[]" style="width: 180px;" multiple="true">
                                <?php while($group->fetchNext()) { ?>
                                    <?php if ($group->id != ADMIN) { ?>
                                        <option value="<?php echo $group->id; ?>" <?php if(in_array($group->id, $group_ids)) {?>selected="true"<?php }?>><?php echo $group->name; ?></option>
                                    <?php } ?>
                                <?php } ?>
                            </select>
                        </td>
                    </tr>
					<tr>
					  	<td class="submit" colspan="2" style="padding-top: 10px;">
							  <a id="auto_menu_return" class="tribullet" id="btnReturn" href="<?php echo $backlink; ?>"><?php echo _LB_BACK; ?></a>
							  <a id="auto_menu_validate" class="tribullet" href="#" onclick="validate()"><?php echo _LB_VALIDATE; ?></a>
						</td>
					</tr>
				</table>
				</form>
			</div>
		</div>
	</div>

<?php include("footer.php"); ?>

